package day06;

import org.w3c.dom.ls.LSOutput;

//此类用于测试   方法的demo
public class Test03 {
    public static void main(String[] args) {
        play();
        sayHi("tom" , 16);
        System.out.println(Pi());
        System.out.println(sum(10,20));

    }
    //无参无返回值方法
    public static void play() {
        System.out.println("玩手机");
        System.out.println("玩游戏");
        System.out.println("玩电脑");
    }
    public static void sayHi(String name , int age){
        System.out.println(name + "同学你好" + "我的年龄是" + age);
    }
    public static double Pi(){
        return 3.1415926;
    }
    public static int sum(int a , int b){
        return a + b;
    }
}
